package com.zhang.crm.util;

import com.zhang.crm.pojo.TUser;
import org.springframework.security.core.context.SecurityContextHolder;

public class UserUtil {
    public static TUser getUserInfo(){
       TUser tUser = (TUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
       return tUser;
    }
}
